﻿using System.ComponentModel.DataAnnotations;
using System;
namespace XSTDZ.ERP.Application.DataContracts
{
    [Serializable]
    public class ProductInfoDto
    {
        public Guid ID { get; set; }
        [Display(Name = "商品名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string ProductName { get; set; }
        [Display(Name = "商品编码")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string ProductCode { get; set; }
        [Display(Name = "商品规格")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string ProductStandard { get; set; }
        [Display(Name = "助记码")]
        public string MnemonicCode { get; set; }
        [Display(Name = "计量单位")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public int ProductUint { get; set; }
        [Display(Name = "销售单价")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public float SellPrice { get; set; }
        public int Deleted { get; set; }
        [Display(Name = "备注")]
        public string Remarks { get; set; }

        public System.Guid ProductTypeID { get; set; }
        [Display(Name = "商品类别")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string TypeName { get; set; }


        public string ProductPyName { get; set; }//拼音助记码

        public string DeleteState { get; set; }
    }
}
